const fs = require("fs").promises
const path = require("path")
const { workPath } = require("../config")
// 异步创建文件夹
async function createDir(dir) {
  const fullPath = path.join(workPath, dir)

  await fs.mkdir(fullPath, { recursive: true }) // 递归创建，可以创建多级目录
}
module.exports = createDir
